package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.tea.inventory.base.validation.groups.CreateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author hanzy
 * @description 订单
 * @date 2023年04月07日 11:02
 */
@Data
public class KillOrderDto implements Serializable {


    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Long skuId;


    /**
     * 商品购买量
     */
    @ApiModelProperty(value = "商品购买量")
    @Positive(message = "商品数量必须大于0", groups = {CreateGroup.class})
    private Integer skuCount;


    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    @NotBlank(message = "联系人不能为空", groups = {CreateGroup.class})
    private String contact;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    @NotBlank(message = "联系电话不能为空", groups = {CreateGroup.class})
    private String contactPhone;

    /**
     * 快递地址/邮箱
     */
    @ApiModelProperty(value = "快递地址")
    private String contactAddr;

    @ApiModelProperty(value = "邮箱")
    private String contactEmail;


}
